Item

Ecng.ComponentModel.Stat`1

Represents an item that tracks the duration of an action.

Herda de: Disposable

Construtores

Item
internal Item(Stat<TAction> parent, TAction action, IPAddress address, Stopwatch watch)
item = Item(parent, action, address, watch)

Initializes a new instance of the Item class.

parent
The parent statistic instance.
action
The action being tracked.
address
The IP address associated with the action.
watch
The stopwatch tracking the action duration.

Métodos

DisposeManaged
protected override void DisposeManaged()
item.DisposeManaged()

Disposes the current tracking item and updates the parent statistics.

Campos

Action
internal readonly TAction Action
value = item.Action

Gets the action being tracked.

Address
internal readonly IPAddress Address
value = item.Address

Gets the IP address associated with the action.